//
//  ZCLogisticsitemCell.m
//  ZCJZ
//
//  Created by sujeking on 2019/3/7.
//  Copyright © 2019年 jeking. All rights reserved.
//

#import "ZCLogisticsitemCell.h"
#import "TBCityIconFont.h"
@interface ZCLogisticsitemCell()

@property (weak, nonatomic) IBOutlet UIImageView *imv;
@property (weak, nonatomic) IBOutlet UIImageView *topline;
@property (weak, nonatomic) IBOutlet UIImageView *bottomline;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@end


@implementation ZCLogisticsitemCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setupSubViews];
}

- (void)setupSubViews {
  UIImage *img = [UIImage iconWithInfo:TBCityIconInfoMake(@"\U0000e632", 20, [generalToolBox getColorWithHexadecimalColorStr:@"0x333333"])];
    self.imv.image = img;
    self.clipsToBounds = YES;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

- (void)setIsFirst:(BOOL)isFirst {
    _isFirst = isFirst;
    if (isFirst) {
        self.topline.hidden = YES;
      UIImage *img = [UIImage iconWithInfo:TBCityIconInfoMake(@"\U0000e632", 20, [generalToolBox getColorWithHexadecimalColorStr:@"0xC20114"])];
        self.imv.image = img;
      self.titleLabel.textColor = [generalToolBox getColorWithHexadecimalColorStr:@"0xC20114"];
    } else {
        self.topline.hidden = NO;
      UIImage *img = [UIImage iconWithInfo:TBCityIconInfoMake(@"\U0000e632", 20, [generalToolBox getColorWithHexadecimalColorStr:@"0x333333"])];
        self.imv.image = img;
      self.titleLabel.textColor = [generalToolBox getColorWithHexadecimalColorStr:@"0x333333"];
    }
}

- (void)setIsLast:(BOOL)isLast {
    _isLast = isLast;
    if (isLast) {
        self.bottomline.hidden = YES;
    } else {
        self.bottomline.hidden = NO;
    }
}

- (void)setDict:(NSDictionary *)dict {
    _dict = dict;
}

@end
